// CONTROLLER.JS

$(document).ready(function() {

	function adjustStyle(width) {
		width = parseInt(width);
		if (width < 701) {
			$("#size-stylesheet").attr("href", "wp-content/themes/muld/css/pequeno.css");
		} else if ((width >= 701) && (width < 900)) {
			$("#size-stylesheet").attr("href", "wp-content/themes/muld/css/medio.css");
		} else {
		   $("#size-stylesheet").attr("href", "wp-content/themes/muld/css/grande.css"); 
		}
	}

	$(function() {
		adjustStyle($(this).width());
		$(window).resize(function() {
			adjustStyle($(this).width());
		});
	});

});